example 5 trigonometric functions